package com.yincheng.oes.business.group.mapper;

import com.yincheng.oes.business.group.model.entity.ExportGroupPaperDO;
import com.yincheng.oes.business.group.model.entity.GroupPaper;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface GroupPaperMapper {
    int deleteByPrimaryKey(String groupPaperId);

    int insert(GroupPaper record);

    GroupPaper selectByPrimaryKey(String groupPaperId);

    int update(GroupPaper record);

    int updateByPaperIdAndGroupId(GroupPaper record);

    GroupPaper selectByPaperIdAndGroupId(@Param("paperId") String paperId, @Param("groupId") String groupId);

    List<ExportGroupPaperDO> selectExportGroupPapersByGroupId(@Param("groupId") String groupId);
}
